package com.hnkywl.sts.entity.zjfb;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.cggl.Cgdmx;
import com.hnkywl.sts.entity.cggl.Glfy;
import com.hnkywl.sts.entity.cggl.Jsd;
import com.hnkywl.sts.entity.htgl.Cght;
import com.hnkywl.sts.entity.organ.*;
import com.hnkywl.sts.entity.sys.Yg;
import com.hnkywl.sts.entity.xsgl.Xsd;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: nianjunyan
 * Date: 13-4-15
 * Time: 下午3:00
 * To change this template use File | Settings | File Templates.
 * 可用资金实体
 */
@Entity
@Table(name = "T_BIZ_KYZJ")
@Where(clause = "deleted!='1'")
public class Kyzj extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqKyzj", allocationSize = 1, sequenceName = "SEQ_BIZ_KYZJ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqKyzj")
    private Long id;


    //  收款公司，关联内部公司
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "NBGS_ID")
    private Gsjg nbgs;

   // 客户，企业机构
   @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "GSJG_ID")
    private Gsjg gsjg;

    // 可用金额
    private  Double kyzj;

    // 是否已经使用 0：未使用，1：已使用
    private  String sfsy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gsjg getNbgs() {
        return nbgs;
    }

    public void setNbgs(Gsjg nbgs) {
        this.nbgs = nbgs;
    }

    public Gsjg getGsjg() {
        return gsjg;
    }

    public void setGsjg(Gsjg gsjg) {
        this.gsjg = gsjg;
    }

    public Double getKyzj() {
        return kyzj;
    }

    public void setKyzj(Double kyzj) {
        this.kyzj = kyzj;
    }

    public String getSfsy() {
        return sfsy;
    }

    public void setSfsy(String sfsy) {
        this.sfsy = sfsy;
    }
}
